
// 订单
import request from "@/utils/https/requests";
// 列表
export function orderList(data: any) {
  return request({
    url: "/order/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddOrder(data: any) {
  return request({
    url: "/order/postAdd",
    method: "post",
    data,
  });
}

// 修改
export function postModOrder(data: any) {
  return request({
    url: `/order/postMod/${data.id}`,
    method: "post",
    data,
  });
}

// 删除
export function postDeleteOrder(id: string) {
  return request({
    url: `/order/postDelete/${id}`,
    method: "post",
  });
}
// 逻辑 删除
export const postLogicDeleteOrder= (id) => {
  return request({
    url: `/order/postLogicDelete/${id}`,
    method: 'post'
  })
}
// 详情
export function orderDetail(id: string) {
  return request({
    url: `/order/detail/${id}`,
    method: "post",
  });
}